import _fetch from './request'
export function getFilters () {
  return _fetch({
    url: '/interview/filters'
  })
}
export function getQuestion ({ type, city }) {
  return _fetch({
    url: '/interview/questions',
    method: 'get',
    needToken: true,
    params: {
      type,
      city
    }
  })
}
export function getSubmit ({ id, singleAnswer, multipleAnswer }) {
  return _fetch({
    url: '/questions/submit',
    method: 'post',
    needToken: true,
    data: {
      id,
      singleAnswer,
      multipleAnswer
    }
  })
}
export function getNextQue ({ id }) {
  return _fetch({
    url: `/questions/${id}`,
    method: 'get',
    needToken: true
  })
}
